//	--------------------------------------------------------------------
//	Copyright(C) 2006,2007 Zhao Yukun. All rights reserved.
//	This file is a part of the Xeres system.
//	Xeres 2007
//	Contact : xeres.engine@gmail.com
//	$(reservedInfo)
//	$(reservedDeclaration)
//	--------------------------------------------------------------------
///	@file	<CStaticLive.h>
///	@path	~/src/scene/lives/
///	@date	2008/01/25
///	@desc	Static model as a live object.

#pragma once

#include "xeres.h"

#include "scene/ILive.h"

namespace xeres {

	/*!
		\class	CStaticLive
		\brief	Static model as a live object place in scene.
	*/
	class CStaticLive : public ILive
	{
	public:

		/// \ctor
		CStaticLive( void );

		/// \dtor
		virtual ~CStaticLive( void );

		DECL_IOBJECT_CLASS_DYNAMIC( CStaticLive , ILive );

	public:

		/// \impl
		virtual void Construct( ResourceLoader * loader , RefWeak<IData> res );

		/// \impl
		virtual void AttachModel( RefWeak<IModel> model );

		/// \impl
		virtual void EnterScene( RefWeak<IScene> scene );

		/// \impl
		virtual void LeaveScene( RefWeak<IScene> scene );

		/// \impl
		virtual void Tick( const Frame& frame );

		/// \impl
		virtual void Present( ScenePresentation& sp );

	private:

		//@ data
		Ref<IModel>			m_model;

	};

} // namespace xeres
